#define _CRT_SECURE_NO_WARNINGS 1
#include"test.h"
void TestSeqList1()
{
	SL s;
	SLInit(&s);
	SLPushBack(&s, 1);
	SLPushBack(&s, 2);
	SLPushBack(&s, 3);
	SLPushBack(&s, 4);
	SLPushBack(&s, 5);
	SLPushBack(&s, 6);
	SLPrint(&s);
	SLPopBack(&s);
	SLPopBack(&s);
	SLPrint(&s);
	SLDestory(&s);
}
void TestSeqList2()
{
	SL s;
	SLInit(&s); 
	//SL* ptr = NULL;
	//SeqInit(ptr);

	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPrint(&s);
	SLPopFront(&s);
	SLPrint(&s);
	SLPopFront(&s);
	SLPrint(&s);
	SLPopFront(&s);
	SLPrint(&s);
	SLPopFront(&s);
	SLPrint(&s);
	SLPopFront(&s);
	SLPrint(&s);
	SLDestory(&s);
}

void TestSeqList3()
{
	SL s;
	SLInit(&s);
	//SL* ptr = NULL;
	//SeqInit(ptr);

	SLPushFront(&s, 1);
	SLPushFront(&s, 2);
	SLPushFront(&s, 3);
	SLPushFront(&s, 4);
	SLPushFront(&s, 5);
	SLPrint(&s);
	SLInsert(&s, 2, 2);
	SLInsert(&s, 3, 9);
	SLInsert(&s, 5, 8);
	SLPrint(&s);
	SLDestory(&s);
}
int main()
{
	TestSeqList1();
	TestSeqList2();
	TestSeqList3();
	return 0;
}